package com.jzo2o.api.customer;

import com.jzo2o.api.customer.dto.response.AddressBookResDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 内部接口 - 普通用户地址簿相关接口
 * 实现类在对应的微服务模块中
 */
@FeignClient(contextId = "jzo2o-customer", name = "jzo2o-customer", path = "/customer/inner/address-book")
public interface AddressBookApi {

    // 地址簿详情  ---用户下单时会用到
    @GetMapping("/{id}")
    AddressBookResDTO detail(@PathVariable("id") Long id);
}
